<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
	<head>
	 	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>交易资产关联</title>
		<script type="text/javascript">
			var bondPath = '<%=context%>' +'business/tradeStructure/';
			//默认加载
			$(function(){
				//把访问路径传到js
				setPathPrefix(bondPath);
			});
		</script>
	</head>
	<body class="sub-page" style="margin: 0 30px;">
	
	<jsp:include page="/WEB-INF/jsp/system/index/homeHead.jsp">
		<jsp:param name="currentActive" value="tzjy" />
	</jsp:include>
	
	<div class="location">
		<i class="fas fa-home"></i>
		<p>您现在的位置：主页</p>
		<p class="current">&gt;投资交易</p>
		<p class="current">&gt;交易结构</p>
		<p class="current">&gt;交易资产关联</p>
	</div>
	<div class="container">
		<div class="clearfix form-multi-col-panel">
			<div class="form-group" style="margin-left: 30%;">
	            <label class="col-sm-1 control-label" style="line-height: 32px;width: 80px;">资产单元</label>
	            <div class="col-sm-4 form-inner">
					<select placeholder="资产单元" class="form-control use-select2" name="assetUnitId" id="assetUnitId_inp">
	            		<c:forEach var="item" items="${asseUnitList}">
							<option value="${item.assetUnitId}">${ item.assetName }</option>
						</c:forEach>
	            	</select>
				</div>
	         </div>
		</div>
		<div class="jqGrid_wrapper fullscreen-wrapper">
			<table id="tradeUnitList"></table>
			<div id="tradeUnitListPage"></div>
		</div>
		<br><br>
		<form name="asseAndtradeUnitRelAddForm" id="asseAndtradeUnitRelAddForm" method="post" action="<%=context%>business/tradeStructure/insertAsseAndTradeUnitRel.do" class="form-horizontal">
		<div class="page-footer">
			 <input type="hidden" name="assetUnitId" id="assetUnitId"/>
			 <input type="hidden" name="tradeUnitId" id="tradeUnitId"/>
	         <button type="button" class="btn btn-primary btn-save" data-loading-text="保存中..." id="submitBtn" name="submitBtn" onclick="doSubmit()">保存</button>
	         <button type="button" class="btn btn-link" onclick="window.close();" id="closeBtn" name="closeBtn">取消</button>
	    </div>
		</form>
		<script type="text/javascript" src="<%=context%>resources/modules/business/investTrade/asseAndtradeUnitRelAdd.js?r=<%=Math.random()%>"></script>
	</div>
	</body>
</html>